/*
 * @Author: your name
 * @Date: 2021-09-01 14:57:17
 * @LastEditTime: 2021-09-02 13:34:12
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /tyut-2021/wuxy/day18/obj1.js
 */
function Person (name, age) {
  this.name = name;
  this.age = age
}
Person.prototype.sayName = function () { console.log("hello") }
var p1 = new Person("zhangsan", 12)
console.log(p1)
p1.sayName()
p1.toString()